﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002E1 RID: 737
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CityShopInfoScNotify : IMessage<CityShopInfoScNotify>, IMessage, IEquatable<CityShopInfoScNotify>, IDeepCloneable<CityShopInfoScNotify>, IBufferMessage
	{
		// Token: 0x17000984 RID: 2436
		// (get) Token: 0x060020E3 RID: 8419 RVA: 0x0005D131 File Offset: 0x0005B331
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CityShopInfoScNotify> Parser
		{
			get
			{
				return CityShopInfoScNotify._parser;
			}
		}

		// Token: 0x17000985 RID: 2437
		// (get) Token: 0x060020E4 RID: 8420 RVA: 0x0005D138 File Offset: 0x0005B338
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CityShopInfoScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000986 RID: 2438
		// (get) Token: 0x060020E5 RID: 8421 RVA: 0x0005D14A File Offset: 0x0005B34A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CityShopInfoScNotify.Descriptor;
			}
		}

		// Token: 0x060020E6 RID: 8422 RVA: 0x0005D151 File Offset: 0x0005B351
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CityShopInfoScNotify()
		{
		}

		// Token: 0x060020E7 RID: 8423 RVA: 0x0005D15C File Offset: 0x0005B35C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CityShopInfoScNotify(CityShopInfoScNotify other) : this()
		{
			this.level_ = other.level_;
			this.takenLevelReward_ = other.takenLevelReward_;
			this.shopId_ = other.shopId_;
			this.exp_ = other.exp_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060020E8 RID: 8424 RVA: 0x0005D1B0 File Offset: 0x0005B3B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CityShopInfoScNotify Clone()
		{
			return new CityShopInfoScNotify(this);
		}

		// Token: 0x17000987 RID: 2439
		// (get) Token: 0x060020E9 RID: 8425 RVA: 0x0005D1B8 File Offset: 0x0005B3B8
		// (set) Token: 0x060020EA RID: 8426 RVA: 0x0005D1C0 File Offset: 0x0005B3C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17000988 RID: 2440
		// (get) Token: 0x060020EB RID: 8427 RVA: 0x0005D1C9 File Offset: 0x0005B3C9
		// (set) Token: 0x060020EC RID: 8428 RVA: 0x0005D1D1 File Offset: 0x0005B3D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong TakenLevelReward
		{
			get
			{
				return this.takenLevelReward_;
			}
			set
			{
				this.takenLevelReward_ = value;
			}
		}

		// Token: 0x17000989 RID: 2441
		// (get) Token: 0x060020ED RID: 8429 RVA: 0x0005D1DA File Offset: 0x0005B3DA
		// (set) Token: 0x060020EE RID: 8430 RVA: 0x0005D1E2 File Offset: 0x0005B3E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ShopId
		{
			get
			{
				return this.shopId_;
			}
			set
			{
				this.shopId_ = value;
			}
		}

		// Token: 0x1700098A RID: 2442
		// (get) Token: 0x060020EF RID: 8431 RVA: 0x0005D1EB File Offset: 0x0005B3EB
		// (set) Token: 0x060020F0 RID: 8432 RVA: 0x0005D1F3 File Offset: 0x0005B3F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Exp
		{
			get
			{
				return this.exp_;
			}
			set
			{
				this.exp_ = value;
			}
		}

		// Token: 0x060020F1 RID: 8433 RVA: 0x0005D1FC File Offset: 0x0005B3FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CityShopInfoScNotify);
		}

		// Token: 0x060020F2 RID: 8434 RVA: 0x0005D20C File Offset: 0x0005B40C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CityShopInfoScNotify other)
		{
			return other != null && (other == this || (this.Level == other.Level && this.TakenLevelReward == other.TakenLevelReward && this.ShopId == other.ShopId && this.Exp == other.Exp && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060020F3 RID: 8435 RVA: 0x0005D278 File Offset: 0x0005B478
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.TakenLevelReward != 0UL)
			{
				num ^= this.TakenLevelReward.GetHashCode();
			}
			if (this.ShopId != 0U)
			{
				num ^= this.ShopId.GetHashCode();
			}
			if (this.Exp != 0U)
			{
				num ^= this.Exp.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060020F4 RID: 8436 RVA: 0x0005D302 File Offset: 0x0005B502
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060020F5 RID: 8437 RVA: 0x0005D30A File Offset: 0x0005B50A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060020F6 RID: 8438 RVA: 0x0005D314 File Offset: 0x0005B514
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Level);
			}
			if (this.Exp != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Exp);
			}
			if (this.ShopId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.ShopId);
			}
			if (this.TakenLevelReward != 0UL)
			{
				output.WriteRawTag(88);
				output.WriteUInt64(this.TakenLevelReward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060020F7 RID: 8439 RVA: 0x0005D3A8 File Offset: 0x0005B5A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.TakenLevelReward != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.TakenLevelReward);
			}
			if (this.ShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ShopId);
			}
			if (this.Exp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Exp);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060020F8 RID: 8440 RVA: 0x0005D430 File Offset: 0x0005B630
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CityShopInfoScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.TakenLevelReward != 0UL)
			{
				this.TakenLevelReward = other.TakenLevelReward;
			}
			if (other.ShopId != 0U)
			{
				this.ShopId = other.ShopId;
			}
			if (other.Exp != 0U)
			{
				this.Exp = other.Exp;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060020F9 RID: 8441 RVA: 0x0005D4A8 File Offset: 0x0005B6A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060020FA RID: 8442 RVA: 0x0005D4B4 File Offset: 0x0005B6B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 16U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.Exp = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.ShopId = input.ReadUInt32();
						continue;
					}
					if (num == 88U)
					{
						this.TakenLevelReward = input.ReadUInt64();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000D6E RID: 3438
		private static readonly MessageParser<CityShopInfoScNotify> _parser = new MessageParser<CityShopInfoScNotify>(() => new CityShopInfoScNotify());

		// Token: 0x04000D6F RID: 3439
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000D70 RID: 3440
		public const int LevelFieldNumber = 2;

		// Token: 0x04000D71 RID: 3441
		private uint level_;

		// Token: 0x04000D72 RID: 3442
		public const int TakenLevelRewardFieldNumber = 11;

		// Token: 0x04000D73 RID: 3443
		private ulong takenLevelReward_;

		// Token: 0x04000D74 RID: 3444
		public const int ShopIdFieldNumber = 8;

		// Token: 0x04000D75 RID: 3445
		private uint shopId_;

		// Token: 0x04000D76 RID: 3446
		public const int ExpFieldNumber = 7;

		// Token: 0x04000D77 RID: 3447
		private uint exp_;
	}
}
